<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/login/common.jsp" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="B2B电商平台" name="description"/>
<meta content="B2B电商平台" name="keyword"/>

<title>B2B电商平台.邮箱认证</title>
<%@ include file="/pages/mainPage/header.jsp" %>
<style type="text/css">
body{margin-left: auto; margin-right: auto;padding-top:10px;padding-left:0px;min-height:500px;}
  .icon-caret-down{white-space: nowrap;}
  .icon-caret-down:before { content: "\f0d7"; }
margin-right: auto;}
ol{
    list-style-type: none;
    display: block;
}
li.current {
	background-color: #4F7BBA;
    font-weight: normal;
    color: #fff;
}
 ol.secr_step3 li {
 	   width: 33%;
 }  
 .next{
 	 background-color: #CCCCCC;
 }
 .done{
 	background-color: #CCCCCC;
 }
 ol li{
 	height: 23px;
    text-align: center;
    color: #656565;
    font-size: 14px;
    line-height: 23px;
    float: left;
 }
li{
	display: list-item;
}
</style>
<script type="text/javascript">
jQuery(document).ready(function() {
	
});
</script>
</head>
 <body class="grayBg" id="corcenter_newl">
  <div id="navigation">
				<div class="NewHead">
					<div class="NewNavBox">
						<div class="NewLogo">
							<img src="<%=path %>/include/images/logo/logo.png" style="width:170px;height:50px;padding-left:10px;padding-top:5px;"/>
						</div>
						<div class="NewNavList" id="NewNavList" >
				        	<ul>
				            	<li class="tagLi" id="mainHome" class="NewCur"><em><a href="JavaScript:void('');" onclick="_queryLeftMenu('','','1','')" target="_self" >首页</a></em></li>
				            </ul>
				        </div>
				        <div id="ulDiv" style="float:right;height:60px;line-height:60px;text-align:right;padding-right:20px;color:white;">
				        	<ul class="nav ace-nav pull-right">
				        		<li class="light-red user-profile" >
					        		<a class="user-menu dropdown-toggle" href="javascript:;" data-toggle="dropdown">
							       		<i >您好 <span id="userName"></span>(<span id="tipsCount">0</span>)</i>
							       		<i class="icon-caret-down"></i>
					        		</a>
					        		<ul id="user_menu" class="pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer">
										<li style="display:none;"><a onclick="editShopInfo();" style="cursor:pointer;"><i class="icon-user"></i> 修改资料</a></li>
										<li id="systemset" style="display:none;"><a onclick="editSys();" style="cursor:pointer;"><i class="icon-cog"></i> 系统设置</a></li>
										<li class="divider" style="display:none;"></li>
										<li style="display:none;"><a href="javascript:void('');" target="_self" onclick="_showTips()"><i class="icon-envelope"></i>通知中心(<span id="tipsCount2" style="color:red;">0</span>)</a></li>
										<li><a href="<%=path %>/login/login_out.do" target="_self"><i class="icon-off"></i> 退出</a></li>
									</ul>
				        		</li>
				       		</ul>
				        </div>
					</div>
				</div>
		</div>
  <div id="contentDiv" style="background-color: #fff4f1;min-height: 500px;">
		<input type="hidden" id="userCode" name="userCode"  value="${userCode}"  />
		<div style="text-align:center;margin-top:100px;width:100%;">
			<p style="font-weight:bold;font-size: 24px;">
			<c:if test="${resultInfo eq 'SUCCESS'}">
			<img src='<%=path%>/include/images/ok.png' style='width:18px;height:18px;'/>恭喜您，邮箱认证成功！
			</c:if>
			<c:if test="${resultInfo eq 'COMPLETED'}">
			<img src='<%=path%>/include/images/ok.png' style='width:18px;height:18px;'/>您好，您已进行过邮箱认证！
			</c:if>
			<c:if test="${resultInfo eq 'UN_FIND'}">
			<img src='<%=path%>/include/css/img/icon12.gif' style='width:18px;height:18px;'/>您好，邮箱认证失败！请稍后再试或者联系管理员
			</c:if>
			<c:if test="${resultInfo eq 'CANCELED'}">
			<img src='<%=path%>/include/css/img/icon12.gif' style='width:18px;height:18px;'/>您好，认证链接已作废，请重新接收邮件并进行认证！
			</c:if>
			<c:if test="${resultInfo eq 'EXPIRED'}">
			<img src='<%=path%>/include/css/img/icon12.gif' style='width:18px;height:18px;'/>您好，认证链接已过期！
			</c:if>
			</p>
			<br>
		</div>
		<div style="text-align:center;margin-top:50px;width:100%;">
			<input type="button" style="border:none;background-position:3px -286px;display:none;" class="btn_base" value="关闭" onclick="_close()"/>
		</div>
	</div>
 </body>
  <script type="text/javascript">
  var path =  "<%=path%>";
  $(document).ready(function(){
		_queryHeadMenuList();
		_getUserInfo();
		var value = false;
		jQuery( function($){
			$('#ulDiv').focus( function() {
				value = true;
			} )
			$('#corcenter_newl').click( function() {
				if(value) {
					value = false;
				} else {
					_hide_side_menu();
				}
			});
		});	
  });
  function _getUserInfo(){
  	$.ajax({
		type:"post",
		url: path+"/login/getUserInfo.do",
		dataType:"json",
		success:function(data){
			if(data.success){
				$("#userName").html(data.obj.userName);
			}
		}
	});
  }
  function _queryHeadMenuList(){
  	 $.ajax({
		type:"post",
		url: path+"/menuRight/queryMenuList.do",
		data:{menuType : 'menuHead'},
		dataType:"json",
		success:function(data){
			if(data.success){
				var str = "";
				var url = $("#rightFrame").attr("src");
				if(data.obj.length>0){
					var list = data.obj;
					str +="<ul>";
					for(var i=0;i<list.length;i++){
						var IF_MAIN = list[i].IF_MAIN;
						if(IF_MAIN=="1"){
							url = list[i].RESOURCE_URL;
						}
						str +="<li class='tagLi' id='"+list[i].MENU_ID+"' ><em><a href=\"javascript:void('')\" onclick=\"_queryLeftMenu('"+list[i].RESOURCE_CODE+"','"+list[i].MENU_ID+"','"+list[i].IF_MAIN+"','"+url+"')\" target='_self' >"+list[i].RESOURCE_NAME+"</a></em></li>";
					}
					str +="</ul>";
				} else {
				}
				if(str!=""){
					$("#NewNavList").html(str);
				}
			}
		}
	});
  }
  function _setLiClass(hrefFlag){
  	if(hrefFlag==""){
  		hrefFlag = "mainHome";
  	}
  	$(".NewNavList .tagLi").each(function(){
      	if($(this).attr("id")==hrefFlag){
    	  	$(this).addClass("NewCur");
      	} else {
      		$(this).removeClass("NewCur"); 
      	}
      });
  }
  function _close(){
  	window.close();
  }
  
  </script>
</html>
